var sum = 1;
function AddDiv() {
    if(sum <=22) {
        var OutId = document.getElementById('Outermost');
        var inh = OutId.innerHTML;
        var inhadd = inh + '<div' + ' onclick=' + '"addale()"' + ' id="newdiv' + sum + '">' + '动态添加的DIV' + '<br><br>' + 'Onclick事件' + '</div>';
        OutId.innerHTML = inhadd;
        sum++;
    }
}
function addale() {
    alert("动态添加");
}
